package com.news.util;

import com.news.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * 用户shiro安全校验
 * */
public class ShiroUtil {
    public static AccountProfile getProfile() {
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }

}
